home *** CD-ROM | disk | FTP | other *** search
- *******************************************************************************
- * PROGRAM: Browse.wfm
- *
- * WRITTEN BY: Borland Samples Group
- *
- * DATE: 3/95
- *
- * UPDATED: 5/95
- *
- * REVISION: $Revision: 1.3 $
- *
- * VERSION: Visual dBASE
- *
- * DESCRIPTION: This is a form for displaying a table in a browse format.
- * It is called from SQL.wfm when a SQL statement doesn't produce
- * an answer set, but changes table contents. This form is used
- * to display the changes.
- *
- * PARAMETERS: None
- *
- * CALLS: Buttons.cc (Custom controls file)
- *
- * USAGE: DO Browse.wfm
- *
- ********************************************************************************
- ** END HEADER -- do not remove this line*
- * Generated on 04/12/95
- *
- parameter bModal
- local f
- f = new BROWSEFORM()
- if (bModal)
- f.mdi = .F. && ensure not MDI
- f.ReadModal()
- else
- f.Open()
- endif
- CLASS BROWSEFORM OF FORM
- set procedure to &_dbwinhome.custom\Buttons.cc additive
- this.PageNo = 1
- this.ColorNormal = "N/BTNFACE"
- this.Text = "Browse"
- this.Top = 0
- this.Left = 35
- this.Height = 18.5293
- this.Width = 60
- this.OnOpen = CLASS::ONOPEN
- this.TopMost = .F.
-
- DEFINE BROWSE BROWSE1 OF THIS;
- PROPERTY;
- PageNo 1,;
- ColorNormal "WINDOWTEXT/WINDOW",;
- Text " ",;
- Top 1.1172,;
- Left 0.832,;
- ScrollBar 2,;
- ColorHighLight "WindowText/Window",;
- Height 15.4707,;
- Width 58.834,;
- CUATab .T.,;
- FontBold .F.,;
- OnOpen CLASS::BROWSE1_ONOPEN,;
- Modify .F.
-
- DEFINE CLOSEBUTTON CLOSEBUTTON1 OF THIS;
- PROPERTY;
- Top 17,;
- Left 25,;
- Height 1.5293,;
- Group .T.,;
- Width 14.166
-
- ****************************************************************************
- Procedure OnOpen
- ****************************************************************************
- form.browse1.alias = alias()
-
- ****************************************************************************
- Procedure BROWSE1_OnOpen
- ****************************************************************************
- private saveFullPath
-
- * Display table name with full path
- saveFullPath = set("fullpath")
- set fullpath on
-
- this.text = dbf()
-
- set fullpath &saveFullPath
-
- ENDCLASS
-
-